<template>
    <div class="container-v3">
        <!-- <iframe v-show="iframeState" id="show-iframe" frameborder=0 name="showHere" scrolling=auto :src="url"></iframe> -->
    </div>
</template>

<script>
// import axios from '@/libs/api.request'
// import xeUtils from 'xe-utils'
import { dibaoCreateGetToken } from '@/api/eventlist'
export default {
  components: {},
  data () {
    return {
      iframeState: false,
      url: ''
    }
  },
  methods: {
    getDibaoWumi () {
      dibaoCreateGetToken({}).then(res => {
        if (res.data.errcode === 0) {
          // window.open(href, '_blank')
        } else {
          this.$Notice.error({ title: '失败', desc: res.data.errmsg })
        }
      })
    }
  },
  mounted () {
    // this.getDibaoWumi()
    console.log(window.location.host, location.href, '@#@#@___+++')
    if (window.location.host === 'qstb.mzj.shenyang.gov.cn') {
      location.href = 'http://qstb.mzj.shenyang.gov.cn/api/ac/csc/diBaoWuMiService/createGetToken'
    } else {
      location.href = 'http://iview.tripln.top/api/ac/csc/diBaoWuMiService/createGetToken'
    }
    // location.href = 'http://iview.tripln.top/api/ac/csc/diBaoWuMiService/createGetToken'
    // var aaa = window.location.host + '/api/ac/csc/diBaoWuMiService/createGetToken'
    // console.log(aaa, '@@@@AAAA')
    // location.href = aaa
    // location.href = window.location.host + '/api/ac/csc/diBaoWuMiService/createGetToken'
    console.log(window.location.host, location.href, '@#@#@___+++')
  }
}
</script>
